package com.softoa.serviceImp;

import com.softoa.mapper.TaskMapper;
import com.softoa.pojo.Task;
import com.softoa.service.ITaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskServiceImp implements ITaskService {
    @Autowired
    TaskMapper taskMapper;

    @Override
    public List<Task> taskSelectList(Task task) {
        return taskMapper.taskSelectList(task);
    }

    @Override
    public int taskInsert(Task task) {
        taskMapper.taskInsert(task);
        return 0;
    }

    @Override
    public Task taskSelectOne(Task task) {
        return taskMapper.taskSelectOne(task);
    }

    @Override
    public int taskUpdate(Task task) {
        taskMapper.taskUpdate(task);
        return 0;
    }
}
